package com.vercon.commonmirror.view;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RadioButton;


@SuppressLint("AppCompatCustomView")
public class NormalRadioButton extends RadioButton {
    public NormalRadioButton(Context context) {
        super(context);
        initTypeFace();
    }

    public NormalRadioButton(Context context, AttributeSet attrs) {
        super(context, attrs);
        initTypeFace();
    }

    public NormalRadioButton(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initTypeFace();
    }

    private void initTypeFace() {
        if(isInEditMode()){
            return ;
        }
        setTypeface(FontProvider.getInstance(getContext()).getTypeface(FontProvider.chinese_type));
    }
}
